package cn.wolfcode.wolf2w.business.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 浪兎兎
 * @since 2025-06-11-15:54
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoteCondition {
    private int min;
    private int max;

    public static final Map<Integer, NoteCondition> TIME_MAP = new HashMap<Integer, NoteCondition>() {{
        this.put(1, new NoteCondition(1, 2));
        this.put(2, new NoteCondition(3, 4));
        this.put(3, new NoteCondition(5, 6));
        this.put(4, new NoteCondition(7, 8));
        this.put(5, new NoteCondition(9, 10));
        this.put(6, new NoteCondition(11, 12));
    }};

    /**
     * 人均花费
     */
    public static final Map<Integer, NoteCondition> CONSUME_MAP = new HashMap<Integer, NoteCondition>() {{
        this.put(1, new NoteCondition(1, 999));
        this.put(2, new NoteCondition(1000, 5999));
        this.put(3, new NoteCondition(6000, 19999));
        this.put(4, new NoteCondition(20000, 0x7fffffff));
    }};

    public static final Map<Integer, NoteCondition> DATE_MAP = new HashMap<Integer, NoteCondition>() {{
        this.put(1, new NoteCondition(1, 3));
        this.put(2, new NoteCondition(4, 7));
        this.put(3, new NoteCondition(8, 14));
        this.put(4, new NoteCondition(15, 0x7fffffff));
    }};
}
